package com.chaodev.base.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel("部门信息")
public class Depart {
    @ApiModelProperty("部门id")
    private String departId;
    @ApiModelProperty("部门名称")
    private String departName;
    @ApiModelProperty("父级部门id")
    private String parentDepartId;
    @ApiModelProperty("包括本级的部门ID和所有父节点的ID（以\",\"隔开）")
    private String parentDepartIds;
    @ApiModelProperty("部门备注")
    private String departDsc;
    @ApiModelProperty("创建时间")
    private String createTime;
    @ApiModelProperty("创建人工号")
    private String createUser;
    @ApiModelProperty("部门等级")
    private Integer departLevel;
    @ApiModelProperty("部门类型")
    private String departType;
    @ApiModelProperty("区域代码")
    private String areaCode;
    @ApiModelProperty("排序编号")
    private Integer orderId;
    @ApiModelProperty("状态")
    private String state;

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getDepartName() {
        return departName;
    }

    public void setDepartName(String departName) {
        if ("".equals(departName) || departName == null) {
            this.departName = "";
        } else {
            this.departName = departName;
        }
    }


    public String getDepartDsc() {
        return departDsc;
    }

    public void setDepartDsc(String departDsc) {
        if ("".equals(departDsc) || departDsc == null) {
            this.departDsc = "";
        } else {
            this.departDsc = departDsc;
        }
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        if ("".equals(createTime) || createTime == null) {
            this.createTime = "";
        } else {
            this.createTime = createTime;
        }
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        if ("".equals(createUser) || createUser == null) {
            this.createUser = "";
        } else {
            this.createUser = createUser;
        }
    }

    public String getDepartType() {
        return departType;
    }

    public void setDepartType(String departType) {
        if ("".equals(departType) || departType == null) {
            this.departType = "";
        } else {
            this.departType = departType;
        }
    }

    public String getAreaCode() {
        return areaCode;
    }

    public void setAreaCode(String areaCode) {
        if ("".equals(areaCode) || areaCode == null) {
            this.areaCode = "";
        } else {
            this.areaCode = areaCode;
        }
    }

    public String getDepartId() {
        return departId;
    }

    public void setDepartId(String departId) {
        this.departId = departId;
    }

    public String getParentDepartId() {
        return parentDepartId;
    }

    public void setParentDepartId(String parentDepartId) {
        this.parentDepartId = parentDepartId;
    }

    public String getParentDepartIds() {
        return parentDepartIds;
    }

    public void setParentDepartIds(String parentDepartIds) {
        this.parentDepartIds = parentDepartIds;
    }

    public Integer getDepartLevel() {
        return departLevel;
    }

    public void setDepartLevel(Integer departLevel) {
        this.departLevel = departLevel;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    @Override
    public String toString() {
        return "Depart{" +
                "departId=" + departId +
                ", departName='" + departName + '\'' +
                ", parentDepartId=" + parentDepartId +
                ", parentDepartIds='" + parentDepartIds + '\'' +
                ", departDsc='" + departDsc + '\'' +
                ", createTime='" + createTime + '\'' +
                ", createUser='" + createUser + '\'' +
                ", departLevel=" + departLevel +
                ", departType='" + departType + '\'' +
                ", areaCode='" + areaCode + '\'' +
                ", orderId=" + orderId +
                '}';
    }
}
